<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:p="http://primefaces.org/ui"
	  xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Pagina Inicial</title>
</h:head>
<h:body>
     <h:form id="form">
     <p:growl id="messages" showDetail="true" life="3000" />
        <f:view>
        <p:panel header="Motel Mais" style="width:25%;">
		<h:panelGrid columns="2" cellpadding="10">
		
		
           <h:outputText value="Login"/>
           <p:inputText value="#{beanLogin.login}" required="true" requiredMessage="Preencha seu Login!" size="8"/>
           <h:outputText value="senha"/>
           <p:password value="#{beanLogin.senha}" required="true" requiredMessage="Preencha sua Senha!" size="8"/>
           <p:commandButton value="Entrar" action="#{beanLogin.logar}" ajax="false"/>           
          
         </h:panelGrid>
         </p:panel>
        
        </f:view>
     </h:form>

</h:body>
</html>